import { postAxios, getAxios, postDownloadAxios } from "@/lib/http";

export const drivingCycleApi = {
  // 获取详情
  getById: data => {
    return getAxios(`/drivingCycle/getById/${data}`);
  },
  // 添加行驶工况特性曲线 @author wuhq
  addDrivingCycle: data => {
    return postAxios("/drivingCycle/add", data);
  },
  // 分页查询行驶工况特性曲线 @author wuhq
  queryDrivingCycle: data => {
    return postAxios("/drivingCycle/page/query", data);
  },
  // 批量删除行驶工况特性曲线 @author wuhq
  batchDeleteDrivingCycle: idList => {
    return postAxios("/drivingCycle/deleteByIds", idList);
  },
  // 修改行驶工况特性曲线  @author wuhq
  updateDrivingCycle: data => {
    return postAxios("/drivingCycle/update", data);
  },
  // 导出全部  @author wuhq
  exportAll: data => {
    return postDownloadAxios("/drivingCycle/export/all", data);
  },
  // 批量导出  @author wuhq
  batchExport: idList => {
    return postDownloadAxios("/drivingCycle/export/batch", idList);
  }
};
